package com.homework.oop;

public class WuMingFen {
  private String theMa;
  private int quantity;
  private boolean booleanlikeSoup;

  public WuMingFen(String theMa, int quantity, boolean booleanlikeSoup) {
    this.theMa = theMa;
    this.quantity = quantity;
    this.booleanlikeSoup = booleanlikeSoup;
  }

  public WuMingFen(String theMa, int quantity) {
    this.theMa = theMa;
    this.quantity = quantity;
//    this.booleanlikeSoup = false;
  }

  public void check() {
    if (this.booleanlikeSoup == false) {
      System.out.println(this.theMa + "面 " + this.quantity + "斤 " + "不带汤");
    }
    if (this.booleanlikeSoup == true) {
      System.out.println(this.theMa + "面 " + this.quantity + "斤 " + "带汤");
    }
  }

  public static void main(String[] args) {
    WuMingFen f1 = new WuMingFen("牛肉", 3, true);
    f1.check();
    WuMingFen f2 = new WuMingFen("牛肉", 2);
    f2.check();
    WuMingFen f3 = new WuMingFen("酸辣", 2, true);
    f3.check();
  }
}
